#!/bin/bash

log_dir="/var/log/testcloud-testrunner"

echo "Starting testcloud-testrunner"
mkdir ${log_dir} 2> /dev/null
touch ${log_dir}/testcloud_testrunner.log
tail -f ${log_dir}/testcloud_testrunner.log &
tail_id=$!
/usr/bin/testcloud-testrunner.sh > ${log_dir}/testcloud_testrunner.log
kill -TERM ${tail_id}

exit 0 # won't happend since testcloud-testrunner.sh does not give hand back
